package com.heima;

public class OperatorDemo2 {
    public static void main(String[] args) {
        //目标：+符号做连接符的识别
        int a = 5;
        System.out.println("abc"+'a');//abca
        System.out.println("abc"+a);//abca
        System.out.println(5+a);//10 能算则算
        System.out.println("abc"+5+'a');//abc5a (abc5不能算，后面'a'连一起)
        System.out.println(15+"abc"+15);//15abc15
        System.out.println(a+'a');//5+97=102
        System.out.println(a+""+'a');//a+"" ==> "5" ==> 5a
        System.out.println(a+'a'+" itmeiha");//102 itheima
        System.out.println("itheima"+a+'a');//itmeima5a
        System.out.println("itheima"+(a+'a'));//itmeima102
    }
}
